﻿//
// Created by francklinson on 2021/3/21.
//

#ifndef CPPPRIMERPLUSREADINGCODES_PERSON_H
#define CPPPRIMERPLUSREADINGCODES_PERSON_H

#include <string>
#include <iostream>
#include <string>
using namespace std;

class Person
{
private:
    static const int LIMIT = 25;
    string lname;      // Person’s last name
    char fname[LIMIT]{}; // Person’s first name
public:
    Person(); // 默认构造
    Person(const string &ln, const char *fn = "Heyyou"); // 参数构造

    // the following methods display lname and fname

    void Show() const;       // firstname lastname format
    void FormalShow() const; // lastname, firstname format

};

#endif //CPPPRIMERPLUSREADINGCODES_PERSON_H
